<template>
    <button @click="handleClick" :value="value">
        <slot></slot>
    </button>
</template>

<script>
    export default {
        props:['value'],
        methods:{
            handleClick(){
                this.$emit("bindClick","子组件给父组件的");
            }
        }
    }
</script>

<style scoped>

</style>